<?php
/**
 * Created by PhpStorm.
 * User: kkw
 * Date: 2019/1/28
 * Time: 16:27
 */
namespace kkw\admin\table;

use suda\archive\Table;

class GoodsTypeTable extends  Table
{
    public function __construct()
    {
        parent::__construct('goods_type');
    }

    protected function onBuildCreator($table)
    {
        return $table->fields([
            $table->field('id', 'bigint', 20)->primary()->unsigned()->auto()->comment('id'),
            $table->field('name', 'varchar', 255)->comment("分类名"),
            $table->field('img', 'varchar', 255)->comment("图片"),
            $table->field('describe', 'varchar', 255)->comment("描述"),
        ]);
    }
}